var money = 10000;
var rate = 0.03;
//1 10000 + 10000*0.03
//2 10300 + 10300*0.03
/*
for(var i=1; i<=5; i++){
  money = money + money*rate;
}
*/
var i = 1;
while(i<=5){
  money = money + money*rate;
  i++;
}
console.log(money);